{extend name="index/index"}
{block name="index"}

        <div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
                分配角色
            </div>
            <ol class="am-breadcrumb">
                <li><a href="{:url('admin/Index/index')}" class="am-icon-home">首页</a></li>
                <li class="am-active">分配角色</li>
            </ol>
            <div class="tpl-portlet-components" style="display-bottom:350px;">
                <div class="portlet-title">
                    <div class="caption font-green bold">
                        <span class="am-icon-code"></span>分配角色
                    </div>
                    <div class="tpl-portlet-input tpl-fz-ml">
                        <div class="portlet-input input-small input-inline">
                            <div class="input-icon right">
                                <i class="am-icon-search"></i>
                                <input type="text" class="form-control form-control-solid" placeholder="搜索..."> </div>
                        </div>
                    </div>


                </div>
                <div class="tpl-block">
                    <div class="am-g">
                        <div class="am-u-sm-12 am-u-md-6">
                            <div class="am-btn-toolbar">
                                <div class="am-btn-group am-btn-group-xs">
                                </div>
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-3">
                            <div class="am-form-group">
                                <select data-am-selected="{btnSize: 'sm'}">
                                  <option value="option1">所有类别</option>
                                  <option value="option2">IT业界</option>
                                  <option value="option3">数码产品</option>
                                  <option value="option3">笔记本电脑</option>
                                  <option value="option3">平板电脑</option>
                                  <option value="option3">只能手机</option>
                                  <option value="option3">超极本</option>
                                </select>
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-3">
                            <div class="am-input-group am-input-group-sm">
                                <input type="text" class="am-form-field">
                                <span class="am-input-group-btn">
                                <button class="am-btn  am-btn-default am-btn-success tpl-am-btn-success am-icon-search" type="button"></button>
                                </span>
                            </div>
                        </div>
                    </div>

                        <form action="{:url('admin/Role/doAccess')}" method="post">
                        <ul class="tpl-task-list">
                        {volist name="data" id="v"}
                            <li>
                                <div class="task-checkbox">
                                    <input type="hidden" name="rid" value="{$rid}">
                                    <input type="checkbox" class="liChild" name="access_id[]" value="{$v['id']}">
                                </div>
                                <div class="task-title">
                                    <span class="label label-sm label-success">{$v['title']}</span>
                                    <span class="task-bell">
                                    </span>
                                </div>

                                <div class="task-config">
                                    <div class="am-dropdown tpl-task-list-dropdown" data-am-dropdown="">
                                        <a href="###" class="am-dropdown-toggle tpl-task-list-hover " data-am-dropdown-toggle="">
                                            <i class="am-icon-cog"></i><span class="am-icon-caret-down"></span>
                                        </a>

                                        <ul class="am-dropdown-content tpl-task-list-dropdown-ul">
                                            <li>
                                                <a href="javascript:;">
                                                    <i class="am-icon-check"></i> 保存 </a>
                                            </li>
                                            <li>
                                                <a href="javascript:;">
                                                    <i class="am-icon-pencil"></i> 编辑 </a>
                                            </li>
                                            <li>
                                                <a href="javascript:;">
                                                    <i class="am-icon-trash-o"></i> 删除 </a>
                                            </li>
                                        </ul>


                                    </div>
                                </div>
                            </li>
                        {/volist}
                    </ul>
                        <div class="am-form-group">
                            <div class="am-u-sm-9 am-u-sm-push-3">
                                <input type="submit" class="am-btn am-btn-primary" value="保存">
                            </div>
                        </div>
                    </form>
                </div>

            </div>


        </div>
{/block}